function query(sql,callback){
    const mysql = require("mysql");

    const conn = mysql.createConnection({
        host: "localhost",
        user: "root",
        password: "123456",
        database: "hero"
    })

    conn.connect();

    conn.query(sql,callback);

    conn.end()
}
module.exports = query;